Launching in a project, not in a module

Hello

I made an interface that we can launch if we are in the folders of a project as it is based on a

Project current_project = current

 

But I would like to prevent someone to try to launch my interface in an open module for example.

How can I find when I launch my program if  I am  in a module or in a project ?

Thank you !


Liise - Wed Aug 31 08:59:04 EDT 2016

Re: Launching in a project, not in a module
Mike.Scharnow - Wed Aug 31 09:04:21 EDT 2016

A condition

if (!null current Module) {
    ack "do not start from a module"
    halt
}

should suffice

Re: Launching in a project, not in a module
Liise - Wed Aug 31 09:13:02 EDT 2016

Thank you very much !
It works perfectly well !